package yuejian_07.yuejian_07.service;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import yuejian_07.yuejian_07.javabean.Master;
import yuejian_07.yuejian_07.javabean.Question;
import yuejian_07.yuejian_07.javabean.Train;

/**
 * Created by dell on 2017/10/25.
 */

public interface MasterService {
    @GET("Master/getMasters")
    Call<List<Master>> getAllMasters();
    //大师详情接口
    //大师详情接口
    @GET("Master/getMasterInfo")
    Call<Master> getMasterById(
            @Query("master_id") int master_id
    );
    //大师课堂接口
    @GET("Master/getMasterTrains")
    Call<List<Train>> getMasterTrains(
            @Query("master_id") int master_id
    );
    //大师问答接口
    @GET("Master/getMasterQA")
    Call<List<Question>> getMasterQA(
            @Query("master_id") int master_id
    );
    //搜索大师
    @GET("Master/searchMaster")
    Call<List<Master>> getMasterBySearch(
            @Query("search") String search
    );
}
